﻿/*------------------------------------------------
// File Description: d_work_order DataBase Entity
// Author:			 Crane
// Create Time:		 2021-04-27 22:21:36
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.OldMes.DataAccess.Entity
{
    /// <summary>
    /// 工单
    /// </summary>
    [Table("d_work_order")]
    public class WorkOrder
    {
        private string _order_no = string.Empty;
        private string _modId = string.Empty;
        private string _work_order = string.Empty;
        private string _work_plant = string.Empty;
        private string _work_remark = string.Empty;
        private string _barcode_before = string.Empty;
        private string _barcode_end = string.Empty;
        private string _set_op = string.Empty;
        private string _plate_type = string.Empty;
        private string _cell_level = string.Empty;
        private string _std_cell = string.Empty;
        private string _nameplate = string.Empty;
        private string _subname = string.Empty;
        private string _liao_q1 = string.Empty;
        private string _shuo_q1 = string.Empty;
        private string _liao_q2 = string.Empty;
        private string _shuo_q2 = string.Empty;
        private string _liao_q3 = string.Empty;
        private string _shuo_q3 = string.Empty;
        private string _bom = string.Empty;
        private string _cellPattern = string.Empty;
        private string _logo = string.Empty;
        private string _source = string.Empty;
        private string _vendorID = string.Empty;
        private string _customer = string.Empty;
        private string _po = string.Empty;
        private string _电池产地 = string.Empty;
        private string _允许打印铭牌型号 = string.Empty;
        private string _标件条码 = string.Empty;

        #region Public Property

        ///<Summary>
        /// id
        ///</Summary>
        public int id { get; set; }

        ///<Summary>
        /// order_no
        ///</Summary>
        public string order_no
        {
            get { return string.IsNullOrWhiteSpace(_order_no) ? string.Empty : _order_no; }
            set { _order_no = value; }
        }

        ///<Summary>
        /// ModId
        ///</Summary>
        public string ModId
        {
            get { return string.IsNullOrWhiteSpace(_modId) ? string.Empty : _modId; }
            set { _modId = value; }
        }

        ///<Summary>
        /// work_order
        ///</Summary>
        [Key]
        public string work_order
        {
            get { return string.IsNullOrWhiteSpace(_work_order) ? string.Empty : _work_order; }
            set { _work_order = value; }
        }

        ///<Summary>
        /// work_plant
        ///</Summary>
        public string work_plant
        {
            get { return string.IsNullOrWhiteSpace(_work_plant) ? string.Empty : _work_plant; }
            set { _work_plant = value; }
        }

        ///<Summary>
        /// work_qty
        ///</Summary>
        public int? work_qty { get; set; }

        ///<Summary>
        /// work_date
        ///</Summary>
        public DateTime? work_date { get; set; }

        ///<Summary>
        /// date_up
        ///</Summary>
        public int? date_up { get; set; }

        ///<Summary>
        /// work_remark
        ///</Summary>
        public string work_remark
        {
            get { return string.IsNullOrWhiteSpace(_work_remark) ? string.Empty : _work_remark; }
            set { _work_remark = value; }
        }

        ///<Summary>
        /// barcode_before
        ///</Summary>
        public string barcode_before
        {
            get { return string.IsNullOrWhiteSpace(_barcode_before) ? string.Empty : _barcode_before; }
            set { _barcode_before = value; }
        }

        ///<Summary>
        /// no_start
        ///</Summary>
        public int? no_start { get; set; }

        ///<Summary>
        /// no_abort
        ///</Summary>
        public int? no_abort { get; set; }

        ///<Summary>
        /// no_wei
        ///</Summary>
        public int? no_wei { get; set; }

        ///<Summary>
        /// barcode_end
        ///</Summary>
        public string barcode_end
        {
            get { return string.IsNullOrWhiteSpace(_barcode_end) ? string.Empty : _barcode_end; }
            set { _barcode_end = value; }
        }

        ///<Summary>
        /// set_op
        ///</Summary>
        public string set_op
        {
            get { return string.IsNullOrWhiteSpace(_set_op) ? string.Empty : _set_op; }
            set { _set_op = value; }
        }

        ///<Summary>
        /// set_time
        ///</Summary>
        public DateTime? set_time { get; set; }

        ///<Summary>
        /// plate_type
        ///</Summary>
        public string plate_type
        {
            get { return string.IsNullOrWhiteSpace(_plate_type) ? string.Empty : _plate_type; }
            set { _plate_type = value; }
        }

        ///<Summary>
        /// cell_number
        ///</Summary>
        public int? cell_number { get; set; }

        ///<Summary>
        /// cell_level
        ///</Summary>
        public string cell_level
        {
            get { return string.IsNullOrWhiteSpace(_cell_level) ? string.Empty : _cell_level; }
            set { _cell_level = value; }
        }

        ///<Summary>
        /// cell_eff_down
        ///</Summary>
        public decimal? cell_eff_down { get; set; }

        ///<Summary>
        /// cell_eff_up
        ///</Summary>
        public decimal? cell_eff_up { get; set; }

        ///<Summary>
        /// std_cell
        ///</Summary>
        public string std_cell
        {
            get { return string.IsNullOrWhiteSpace(_std_cell) ? string.Empty : _std_cell; }
            set { _std_cell = value; }
        }

        ///<Summary>
        /// out_in
        ///</Summary>
        public int? out_in { get; set; }

        ///<Summary>
        /// boark_count
        ///</Summary>
        public int? boark_count { get; set; }

        ///<Summary>
        /// Nameplate
        ///</Summary>
        public string Nameplate
        {
            get { return string.IsNullOrWhiteSpace(_nameplate) ? string.Empty : _nameplate; }
            set { _nameplate = value; }
        }

        ///<Summary>
        /// subname
        ///</Summary>
        public string subname
        {
            get { return string.IsNullOrWhiteSpace(_subname) ? string.Empty : _subname; }
            set { _subname = value; }
        }

        ///<Summary>
        /// liao_q1
        ///</Summary>
        public string liao_q1
        {
            get { return string.IsNullOrWhiteSpace(_liao_q1) ? string.Empty : _liao_q1; }
            set { _liao_q1 = value; }
        }

        ///<Summary>
        /// shuo_q1
        ///</Summary>
        public string shuo_q1
        {
            get { return string.IsNullOrWhiteSpace(_shuo_q1) ? string.Empty : _shuo_q1; }
            set { _shuo_q1 = value; }
        }

        ///<Summary>
        /// liao_q2
        ///</Summary>
        public string liao_q2
        {
            get { return string.IsNullOrWhiteSpace(_liao_q2) ? string.Empty : _liao_q2; }
            set { _liao_q2 = value; }
        }

        ///<Summary>
        /// shuo_q2
        ///</Summary>
        public string shuo_q2
        {
            get { return string.IsNullOrWhiteSpace(_shuo_q2) ? string.Empty : _shuo_q2; }
            set { _shuo_q2 = value; }
        }

        ///<Summary>
        /// liao_q3
        ///</Summary>
        public string liao_q3
        {
            get { return string.IsNullOrWhiteSpace(_liao_q3) ? string.Empty : _liao_q3; }
            set { _liao_q3 = value; }
        }

        ///<Summary>
        /// shuo_q3
        ///</Summary>
        public string shuo_q3
        {
            get { return string.IsNullOrWhiteSpace(_shuo_q3) ? string.Empty : _shuo_q3; }
            set { _shuo_q3 = value; }
        }

        ///<Summary>
        /// bom
        ///</Summary>
        public string bom
        {
            get { return string.IsNullOrWhiteSpace(_bom) ? string.Empty : _bom; }
            set { _bom = value; }
        }

        ///<Summary>
        /// CellPattern
        ///</Summary>
        public string CellPattern
        {
            get { return string.IsNullOrWhiteSpace(_cellPattern) ? string.Empty : _cellPattern; }
            set { _cellPattern = value; }
        }

        ///<Summary>
        /// Logo
        ///</Summary>
        public string Logo
        {
            get { return string.IsNullOrWhiteSpace(_logo) ? string.Empty : _logo; }
            set { _logo = value; }
        }

        ///<Summary>
        /// Source
        ///</Summary>
        public string Source
        {
            get { return string.IsNullOrWhiteSpace(_source) ? string.Empty : _source; }
            set { _source = value; }
        }

        ///<Summary>
        /// VendorID
        ///</Summary>
        public string VendorID
        {
            get { return string.IsNullOrWhiteSpace(_vendorID) ? string.Empty : _vendorID; }
            set { _vendorID = value; }
        }

        ///<Summary>
        /// Customer
        ///</Summary>
        public string Customer
        {
            get { return string.IsNullOrWhiteSpace(_customer) ? string.Empty : _customer; }
            set { _customer = value; }
        }

        ///<Summary>
        /// po
        ///</Summary>
        public string po
        {
            get { return string.IsNullOrWhiteSpace(_po) ? string.Empty : _po; }
            set { _po = value; }
        }

        ///<Summary>
        /// 电池产地
        ///</Summary>
        public string 电池产地
        {
            get { return string.IsNullOrWhiteSpace(_电池产地) ? string.Empty : _电池产地; }
            set { _电池产地 = value; }
        }

        ///<Summary>
        /// 允许打印铭牌型号
        ///</Summary>
        public string 允许打印铭牌型号
        {
            get { return string.IsNullOrWhiteSpace(_允许打印铭牌型号) ? string.Empty : _允许打印铭牌型号; }
            set { _允许打印铭牌型号 = value; }
        }

        ///<Summary>
        /// 标件条码
        ///</Summary>
        public string 标件条码
        {
            get { return string.IsNullOrWhiteSpace(_标件条码) ? string.Empty : _标件条码; }
            set { _标件条码 = value; }
        }
        #endregion
    }

    public partial class OldMESContext
    {
        /// <summary>
        /// 工单表
        /// </summary>
        public virtual DbSet<WorkOrder> WorkOrders { get; set; }
    }
}